﻿using System;
using System.Collections.Generic;
using InvestmentIntelligence.DbModel.Models;

namespace InvestmentIntelligence.Data.Repository.Comparers.EntityModelsComparers
{
    public class BookBenchmarkTypeComparer : IEqualityComparer<BookBenchmarkType>
    {
        public bool Equals(BookBenchmarkType x, BookBenchmarkType y)
        {
            return x.BenchmarkType.Equals(y.BenchmarkType, StringComparison.InvariantCultureIgnoreCase) && x.FundBookEntityId == y.FundBookEntityId;
        }

        public int GetHashCode(BookBenchmarkType obj)
        {
            return 1;
        }
    }
}